package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2023-04-30
 * Time: 10:31
 */
public class Run {
    public static void main(String[] args) {
        MyStack stack = new MyStack();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);

        int x = stack.pop();
        System.out.println(x);
        int x1 = stack.pop();
        System.out.println(x1);
        int x2 = stack.pop();
        System.out.println(x2);

        int x3 = stack.peek();
        System.out.println(x3);
        stack.pop();
        System.out.println(stack.Empty());
    }


}
